package Reminder.dao;

import com.alibaba.fastjson.JSONObject;
import Reminder.domain.Message;

import java.io.IOException;
import java.text.ParseException;

public interface UserDao {
    public Message setUserData(JSONObject useInfo) throws IOException;
    public Message getUserData(int userId) throws IOException, ParseException;
    public Message exist(String phone) throws IOException;
    public Message register(JSONObject useInfo) throws ParseException, IOException;
    public Message login(JSONObject useInfo) throws IOException;
    public Message getUserList() throws IOException;
    public Message generateUserId() throws IOException;
}
